#ifndef MYSXT_H
#define MYSXT_H

#include <QWidget>
#include <QCamera>
#include <QCameraInfo>
#include <QCameraViewfinder>
#include <QCameraImageCapture>

namespace Ui {
class mysxt;
}

class mysxt : public QWidget
{
    Q_OBJECT

public:
    explicit mysxt(QWidget *parent = nullptr);
    ~mysxt();

    QCamera * m_camera; //相机
    QCameraViewfinder * m_viewfinder; //取景器
    QCameraImageCapture * m_imgCapture; //图像捕获

    QList<QCameraInfo> m_cameraList; //相机列表
    QList<QSize> m_sizeList; //分辨率

private slots:
    void on_bt_open_clicked();

    void on_bt_close_clicked();

    void on_bt_capture_clicked();

    void on_cb_resloution_activated(int index);

private:
    Ui::mysxt *ui;
};

#endif // MYSXT_H
